//
// Created by dong on 2025/10/21.
//

#ifndef BASEC_SACTION_H
#define BASEC_SACTION_H
#include "SButton.h"


class SAction:public SButton
{
public:
    SAction(Swidget* parent=nullptr);
    SAction(const string& text,Swidget* parent=nullptr);
    string text() const;
    bool event(SDL_Event* msg) override;
    void mousePressEvent(SDL_Event* msg) override;
protected:
    string m_text;
};


#endif //BASEC_SACTION_H